var news = new Vue({
	el: '#news',
	data: {
		imgsrc:'',
		news:[]
	},
	mounted: function() {
		this.imgsrc = photosrc
		this.getAllList()
	},
	methods: {
		getAllList:function(){
			var _this = this
				axios({
				url: sever + '/news',
				method: 'POST',
				// 请求体重发送的数据
				params: {
	
				},
				timeout: 50000,
				// 设置请求头
				headers: {
					'Content-Type': 'application/x-www-form-urlencoded'
				}
			}).then(function(res){ 
				_this.news = res.data.news
			})
		},
		openNews:function(item){
			localStorage.news = item.content
			localStorage.title = item.title
			
			mui.openWindow('news.html')
		}

	},
});